package sv.gob.mh.dgii.model;

// Generated 07-08-2013 11:08:04 AM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcActEcoTmp generated by hbm2java
 */
@Entity
@Table(name = "RC_ACT_ECO_TMP", schema = "RUC")
public class RcActEcoTmp implements java.io.Serializable {

	private RcActEcoTmpId id;
	private RcRucTmp rcRucTmp;
	private Long IRcActEco;
	private Date fiActEco;
	private Date ffActEco;
	private Long orden;
	private String CUsuario;
	private String NFolio;

	public RcActEcoTmp() {
	}

	public RcActEcoTmp(RcActEcoTmpId id, RcRucTmp rcRucTmp) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
	}

	public RcActEcoTmp(RcActEcoTmpId id, RcRucTmp rcRucTmp, Long IRcActEco,
			Date fiActEco, Date ffActEco, Long orden, String CUsuario,
			String NFolio) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
		this.IRcActEco = IRcActEco;
		this.fiActEco = fiActEco;
		this.ffActEco = ffActEco;
		this.orden = orden;
		this.CUsuario = CUsuario;
		this.NFolio = NFolio;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ICorrelativo", column = @Column(name = "I_CORRELATIVO", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "nit", column = @Column(name = "NIT", nullable = false, length = 14)),
			@AttributeOverride(name = "CActEco", column = @Column(name = "C_ACT_ECO", nullable = false, length = 6)) })
	public RcActEcoTmpId getId() {
		return this.id;
	}

	public void setId(RcActEcoTmpId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "I_CORRELATIVO", referencedColumnName = "I_CORRELATIVO", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "NIT", referencedColumnName = "NIT", nullable = false, insertable = false, updatable = false) })
	public RcRucTmp getRcRucTmp() {
		return this.rcRucTmp;
	}

	public void setRcRucTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	@Column(name = "I_RC_ACT_ECO", precision = 18, scale = 0)
	public Long getIRcActEco() {
		return this.IRcActEco;
	}

	public void setIRcActEco(Long IRcActEco) {
		this.IRcActEco = IRcActEco;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FI_ACT_ECO", length = 7)
	public Date getFiActEco() {
		return this.fiActEco;
	}

	public void setFiActEco(Date fiActEco) {
		this.fiActEco = fiActEco;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FF_ACT_ECO", length = 7)
	public Date getFfActEco() {
		return this.ffActEco;
	}

	public void setFfActEco(Date ffActEco) {
		this.ffActEco = ffActEco;
	}

	@Column(name = "ORDEN", precision = 18, scale = 0)
	public Long getOrden() {
		return this.orden;
	}

	public void setOrden(Long orden) {
		this.orden = orden;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCUsuario() {
		return this.CUsuario;
	}

	public void setCUsuario(String CUsuario) {
		this.CUsuario = CUsuario;
	}

	@Column(name = "N_FOLIO", length = 12)
	public String getNFolio() {
		return this.NFolio;
	}

	public void setNFolio(String NFolio) {
		this.NFolio = NFolio;
	}

}
